The connection is not open (Error 40512).

The operation attempted requires that the rdoConnection object be associated with a specific server. Use the EstablishConnection or OpenConnection method to open the connection.